home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
526-550
/
disk_541
/
steal
/
src
/
gadget.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
4KB
|
133 lines
/***** Intuition structures stolen by means of Steal 1.1 by Rick van Rein */
#include <intuition/intuition.h>
#include <graphics/view.h>
#define BLUE_0 0
#define WHITE_1 1
#define BLACK_2 2
#define ORANGE_3 3
USHORT pic1 []=
{
/* Plane 0 contains a picture: */
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0004,0x0000,0x0000,
0x0000,0x003e,0x0001,0xf000,0x0000,
0x0000,0x0ffc,0x0000,0xff00,0x0000,
0x0007,0xfff8,0x0000,0xfff0,0x0000,
0x0003,0xfff8,0x0000,0x7fff,0xf000,
0x0000,0x3ffc,0x0000,0x7fff,0xc000,
0x0000,0x01fe,0x0000,0xff80,0x0000,
0x0000,0x000f,0x0003,0xc000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
/* Plane 1 contains a picture: */
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0002,0x3020,0x0000,0x0000,
0x0000,0x0082,0x2060,0x1000,0x0000,
0x0000,0x0881,0x2040,0x2040,0x0000,
0x0004,0x0cc1,0x20c0,0x60c0,0x0000,
0x0006,0x0441,0x2081,0x8181,0x0000,
0x0022,0x0661,0x3707,0x0703,0x0400,
0x0221,0x8330,0xfffe,0x0c06,0x0c10,
0x031e,0xf8ff,0x8003,0xf818,0x1830,
0x11e3,0x1fc0,0x0000,0x0f70,0x3020,
0x183f,0xf000,0x0780,0x00f8,0x6060,
0x0f78,0x0000,0x0fc0,0x000f,0xf980,
0x03fc,0x0000,0x0780,0x0000,0x0fe0,
0x0003,0xc000,0x0000,0x0000,0x3f00,
0x0000,0x7e00,0x0000,0x007f,0xe000,
0x0000,0x03f0,0x0000,0x3f80,0x0000,
0x0000,0x000f,0xffff,0xe000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000
};
struct Image img1=
{
0,0, /* LeftEdge,TopEdge */
79,18,2, /* Width,Height,Depth */
pic1, /* ImageData */
0x03,0x00, /* PlanePick,PlaneOnOff */
NULL /* NextImage */
};
USHORT pic2 []=
{
/* Plane 0 contains a picture: */
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
/* Plane 1 contains a picture: */
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0040,0x0000,0x0080,0x0000,0x0000,
0x00c4,0x0011,0xfffe,0x0820,0x0020,
0x0086,0x05ff,0x2087,0xf820,0x3060,
0x20c2,0x3fa3,0x6186,0x1e20,0x6040,
0x307f,0xe666,0x418c,0x09f0,0xc0c0,
0x1ed3,0x6264,0x418c,0x187f,0xf300,
0x07ff,0xfb24,0xc184,0x31cf,0xffc0,
0x0007,0x8ff4,0xc307,0xfffe,0x7e00,
0x0000,0xfc1f,0xfffc,0x00ff,0xc000,
0x0000,0x07e0,0x0000,0x7f00,0x0000,
0x0000,0x001f,0xffff,0xc000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000,
0x0000,0x0000,0x0000,0x0000,0x0000
};
struct Image img2=
{
0,0, /* LeftEdge,TopEdge */
78,19,2, /* Width,Height,Depth */
pic2, /* ImageData */
0x03,0x00, /* PlanePick,PlaneOnOff */
NULL /* NextImage */
};
struct Gadget gad1=
{
NULL, /* NextGadget */
5,15, /* LeftEdge,TopEdge */
79,18, /* Width,Height */
GADGHIMAGE | GADGIMAGE, /* Flags */
RELVERIFY | GADGIMMEDIATE, /* Activation */
BOOLGADGET, /* GadgetType */
(APTR) &img1, /* GadgetRender (Image) */
(APTR) &img2, /* SelectRender (Image) */
NULL, /* GadgetText */
0x00000000, /* MutualExclude */
NULL, /* SpecialInfo (BoolInfo) */
0, /* GadgetID */
0x00000000 /* UserData */
};